export default {
  path: "/customer",
  redirect: "/customer/index",
  meta: {
    icon: "ri:information-line",
    // showLink: false,
    title: "客户管理",
    rank: 10
  },
  children: [
    {
      path: "/customer/index",
      name: "customer",
      component: () => import("@/views/customer/index.vue"),
      meta: {
        title: "客户管理",
        roles: ["admin", "saleman"],
        showParent: true
      }
    },
    {
      path: "/customer/add",
      name: "addcustomer",
      component: () => import("@/views/customer/AddCustomer.vue"),
      meta: {
        title: "添加客户",
        // 是否在菜单中显示
        showLink: false,
        dynamicLevel: 1,
        roles: ["admin", "saleman"]
      }
    }
  ]
} satisfies RouteConfigsTable;
